/*
** list_size.c for liblist in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#include "list.h"

int	list_size(void *l)
{
  int	i;

  i = 0;
  while (l)
    {
      l = *(void **)l;
      i++;
    }
  return (i);
}
